#!/usr/bin/env ruby
#
#  Created by Dzema Dmitriy on 2007-04-23.
#  Copyright (c) 2007. All rights reserved.
class CodeGenerator
  @result = String.new()
  
  def initialize(mode)
    @mode = mode
  end
  
  def generate(root_node)
    case @mode
    when :parrot
      @result = root_node.generate_to_parrot()
    end
  end
end
